package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.TravelCommentRe;
import cn.wolfcode.trip.base.mapper.TravelCommentReMapper;
import cn.wolfcode.trip.base.service.ITravelCommentReService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TravelCommentReServiceImpl implements ITravelCommentReService {

    @Autowired
    private TravelCommentReMapper travelCommentReMapper;

    @Override
    public List<TravelCommentRe> queryBytravelCommentId(Long travelCommentId) {
        List<TravelCommentRe> list = travelCommentReMapper.queryBytravelCommentId(travelCommentId);
        return list;
    }

    @Override
    public void saveCommentRe(TravelCommentRe travelCommentRe) {
        travelCommentReMapper.insert(travelCommentRe);
    }
}
